export default {
  state: {
    roleId: 0, // 角色Id
    permissionDialogVisible: false
  },
  mutations: {
    setPerms(state, perms) {
      state.perms = perms
    },
    setDialogVisible(state, {visible, roleId}) {
      state.permissionDialogVisible = visible
      if (visible) {
        state.roleId = roleId
      }
    }
  }
}
